/*
 * @Author: Aaron
 * @Date: 2022-02-21 14:10:54
 * @LastEditors: yanMeng
 * @LastEditTime: 2022-08-05 10:50:08
 * @Description: file content
 * @FilePath: \ias_ui\src\components\eTable\js\mixins.js
 * @Company: 沃尔玛
 */

export const tableParams = {
  data() {
    return {
      pageParams: {
        pageNum: 1,
        pageSize: 10
      },
      total: 0,
      dataList: [],
      multipleSelection: []
    }
  },
  methods: {
    selectionChange(val) {
      this.multipleSelection = val
    }
  }
}

export const searchHeaderEvent = {
  methods: {
    handleSearch() {
      this.$refs.table && this.$refs.table.clearSelection()
      this.pageParams.pageNum = 1
      this.requestData()
    },
    handleReset(v = {}) {
      this.$refs.table && this.$refs.table.clearSelection()
      this.searchData = v
      this.handleSearch()
    },
    addition() {
      // console.log('*****', this.$refs.addSPURef.dialogVisible)
      this.$refs.addSPURef.dialogVisible = true
      // this.dialogVisible = true
      console.log('单一行政', this.menuName)
    }
  }
}
